<%@ Page Language="C#" %>

<%@ Register TagPrefix="bloget" Namespace="BlueOnionSoftware.Bloget" Assembly="Bloget" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
  protected override void OnLoad(EventArgs e)
  {
    if (Bloget.Mode != Mode.Blog && Bloget.Mode != Mode.Post && Bloget.Mode != Mode.Index)
    {
      sidebar.Visible = false;
      content.Style.Add(HtmlTextWriterStyle.Width, "675px");
    }
    base.OnLoad(e);
  }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <title>WordPress Clone</title>
  <link rel="stylesheet" type="text/css" href="wp.css" media="screen" />
</head>
<body>
  <form id="form1" runat="server">
    <div id="page">
      <div id="header">
        <div id="headerimg" style="cursor: pointer">
          <bloget:BlogetTitle ID="BlogetTitle1" runat="server" DataContext="~/App_Data/SampleBlog/Blog.xml" />
        </div>
      </div>
      <hr />
      <div runat="server" id="content" class="narrowcolumn">
        <bloget:BlogetBlog ID="Bloget" runat="server" DataContext="~/App_Data/SampleBlog/Blog.xml" />
      </div>
      <div runat="server" id="sidebar">
        <p>
          <bloget:BlogetSearch ID="search" runat="server" DataContext="~/App_Data/SampleBlog/Blog.xml" />
        </p>
        <p>
          <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/WordPress.aspx?m=login" Text="login (Hint:Bloget)" /><br />
          <a href="?m=rss" type="text/xml">RSS</a> </p>
        <h3>Categories</h3>
        <bloget:BlogetCategory runat="server" ID="blogetCategory" DataContext="~/App_Data/SampleBlog/Blog.xml" />
        <h3>Recent Posts</h3>
        <bloget:BlogetRecentPosts runat="server" ID="blogetRecent" DataContext="~/App_Data/SampleBlog/Blog.xml" />
        <h3>Archives</h3>
        <bloget:BlogetArchive runat="server" ID="archives" DataContext="~/App_Data/SampleBlog/Blog.xml" Length="10" />
        <h3>Blog Roll</h3>
        <bloget:BlogetBlogRoll runat="server" ID="blogroll" DataContext="~/App_Data/SampleBlog/Blog.xml" Uri="http://www.bloglines.com/export?id=blueonionsoftware">
          <BlogRollTemplate>
            <img src="Images/arrow.png" alt="" />
            <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="<%#Container.BlogRollHtmlUrl%>" Text="<%#Container.BlogRollTitle%>" /><br />
          </BlogRollTemplate>
        </bloget:BlogetBlogRoll>
      </div>
      <div id="footer">
        <p>Bloget <i>&quot;One Binary, One File, One Bog&quot;</i></p>
      </div>
    </div>
  </form>
</body>
</html>
